import React from 'react';
import ReactDOM from 'react-dom';
// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等
import '@alifd/next/reset.scss';
import router from './router';
import { observable } from 'mobx';
import { Provider } from 'mobx-react';
import stores from './store/index';
const ICE_CONTAINER = document.getElementById('ice-container');

if (!ICE_CONTAINER) {
  throw new Error('当前页面不存在 <div id="ice-container"></div> 节点.');
}

/***
 * 添加mobx 做状态管理
 */
const App = () => (
  <Provider {...stores}>
     {router}
  </Provider>
)

ReactDOM.render(<App/>, ICE_CONTAINER);
